package stool.flyweight;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/16
 */
public class ConcreteWebSite extends WebSite{

    private String name = "";

    public ConcreteWebSite(String name) {
        this.name = name;
    }

    @Override
    public void use(User user) {
        System.out.println("type:" + this.name + " || user:" + user.getName());
    }
}
